jQuery.fn.extend({prompt:function(msg,addtion){
	var element =$(this);
	var fieldWidth = element.width();
	var divHtml = '<div  class="formError"  style="display:none"><div class="formErrorContent"></div><div class="formErrorArrow"><div class="line10"></div><div class="line9"></div><div class="line8"></div><div class="line7"></div><div class="line6"></div><div class="line5"></div><div class="line4"></div><div class="line3"></div><div class="line2"></div><div class="line1"></div></div></div>';
	var promptElmt = $(divHtml).bind("click",function(){  
		$(this).fadeTo("fast", 0, function() {
			$(this).remove();
		});
	});
	promptElmt.find(".formErrorContent").html(msg);
	
		if(arguments.length>1 && undefined!=addtion){
				promptElmt.attr(addtion);
		}
		$('body').append(promptElmt);
					
	
		var promptHeight = promptElmt.height();

        var offset = element.offset();
        var promptTopPosition = offset.top;
        var promptleftPosition = offset.left;
        var marginTopSize = 0;
                   
        promptleftPosition += fieldWidth - 30;
        promptTopPosition += -promptHeight;
        var promptWidth=promptElmt.width();
		promptElmt.css({ 
			"top": promptTopPosition,
            "left":promptleftPosition
        }).show();
		element.keypress(function(event){
				promptElmt.fadeTo("fast",0,function(){
					$(this).remove();	
				});

		});
  }});